<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--{include file='comm/header.tpl'}-->
    	<title>商品筛选器详情</title>
    <!--{include file='comm/comm_pic.tpl'}-->
</head>
<body>
<div style="width:100%">
    <div class="items clearfix">
        <h2 style="" class="tal">
        	正在操作：
        	查看商品筛选器详情
        </h2>
        <div class="items2">
			<div>
                <form id="selector_form" onsubmit="return false;">
                    <div style="width:900px;">
						<table id="flex" style="width:100%;padding-bottom:0px;">
							
						</table>
					</div>
                </form>
            </div>
        </div>
    </div>


</div>
<script type="text/javascript">
	//表格对象
	var table_obj = { 'page' : '', 'total' : '', 'rows' : []};
	
	$("#flex").flexigrid({
        url:"",
        dataType: "json",
        colModel : [
            {display: "选择器", width:475  },
            {display: "商品名称", width:420  }
        ],
        useRp: false,
        showTableToggleBtn: true
    });

    var selector = {
    	
         //添加一行
		 tr_fun : function(id, value){

			table_obj.rows.push({ 'id' : id , 'cell' : value});
        	
        	$("#flex").flexAddData(table_obj);	
			
        }
    };

    //编辑初始化显示选择器
    $(document).ready(function() {
		<!--{if $result_detail}-->
			<!--{foreach from=$result_detail item=rule}-->
				var value = ['<!--{$rule->selectorText}-->', '<!--{$rule->typeText}-->'];
				selector.tr_fun('', value);
			<!--{/foreach}-->
		<!--{/if}-->
    });
</script>

</body>

</html>
